package com.aaa.service.mht;

import com.aaa.entity.mht.MHTQuestion;
import com.aaa.entity.sas.TestPlanSas;
import com.aaa.entity.system.PageOrder;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * 问题表(QuestionMht)表服务接口
 *
 * @author makejava
 * @since 2022-08-30 14:27:41
 */
public interface MHTQuestionService {

    /**
     *  @create by: 肖成杰
     *  @description: service层查询所有fangfa
     *  @create time: 2022/8/30 15:00
     *  @params pageOrder
     *  @params mhtQuestion用于条件查询
     *  @return Page
     *  */
   Page queryAll(PageOrder pageOrder, MHTQuestion mhtQuestion);

    /**
     * 通过指定id删除一条或多条数据
     * @param ids
     * @return
     */
    boolean delete(int[] ids);

    /**
     * 加入一条新数据
     * @param mhtQuestion
     * @return
     */
    int insertMHT( MHTQuestion mhtQuestion);

    /**
     * 通过id修改数据
     * @param mhtQuestion
     * @return
     */
    int updateMHT( MHTQuestion mhtQuestion);

    /**
     * 验证名字唯一
     * @param mhtQuestion
     * @return
     */
    boolean repetitionName(MHTQuestion mhtQuestion);

    /**
     * 查询题目类型
     * @return
     */
    List<MHTQuestion> queryDictionary();
}
